package com.john.utils.enums;

/**
 * 字符编码
 */
public enum CharsetName {
    CHAR_UTF_8(0,"UTF-8"),
    CHAR_GBK(1,"GBK"),
    CHAR_ISO_8859_1(2,"ISO-8859-1")
    ;
    private Integer code;
    private String name;

    CharsetName(Integer code, String name){
        this.code = code;
        this.name = name;
    }

    public Integer getCode(){
        return code;
    }

    public String getName(){
        return name;
    }
}
